﻿using System;
using System.Collections.Generic;
using System.Text;
using com.lover.astd.common.logic;

namespace com.lover.astd.common.logicexe.battle
{
    public class ResCampaignExe : ExeBase
    {
        public ResCampaignExe() { _name = ConfigStrings.S_ResCampaign; _readable = ConfigStrings.SR_ResCampaign; }
        public override long execute()
        {
            Dictionary<string, string> configs = getConfig();
            if (!configs.ContainsKey(ConfigStrings.enabled) || !configs[ConfigStrings.enabled].ToLower().Equals("true")) return an_hour_later();

            int result = ServiceFactory.getBattleManager().handleResCampaign(_proto, _logger);
            return next_hour();
        }
    }
}
